package com.qf.feign;

import com.qf.entity.City;
import com.qf.entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@FeignClient("MICRO-CITY")
public interface CityFeign {
    @RequestMapping("/city/list")
    R<List<City>> list();
    @RequestMapping("/city/insert")
    R<Boolean> insert(@RequestBody City city);
    @RequestMapping("/city/getById")
    R<City> queryCityById(@RequestParam Integer id);
}
